package com.bjwl.dao;

import com.bjwl.pojo.Business;
import com.bjwl.pojo.Staff;
import com.bjwl.pojo.vo.QueryBusinessVo;
import com.bjwl.utils.PageBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author: czc
 * @Date:Create：in 2020/4/14 11:28
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Repository
public interface BusinessMapper {
    //根据分店id 查询业务
    public List<Business> byBsIdFindBusinessC(Integer branchstoreid);
    //根据当前id查询当前业务
    public Business updateShowBusinese(Integer id);
    //根据业务id修改业务信息
    public void updateBusinessByid(Business business);
    //根据当前业务id删除当前业务
    public void deleteBusinese(Integer buid);

    public void addBusiness(Business business);

    Integer getTotalRecord(QueryBusinessVo queryBusinessVo);

    List<Business> findAllBusiness(PageBean<Business> pageBean, QueryBusinessVo queryBusinessVo);

    //查询当前分店业务数
    public Integer finBusinessCount(Integer bsid);

    Integer findAllBusinessTotalRecord();

    //**********************************************************

    Integer businessPaging(Integer branchstoreid,Integer bopid ,String bopvalue , String bstarttime,String bendtime,Integer bsstate);
    List<Business> findBusinessBS(PageBean<Business> pageBean, Integer branchstoreid, String bstarttime,String bendtime,Integer bopid ,String bopvalue,Integer bsstate);
}